<include file="public/layout" />
<!--以下是在线编辑器 代码 -->
<script type="text/javascript">
    /*
	 * 在线编辑器相 关配置 js 
	 *  参考 地址 http://fex.baidu.com/ueditor/
	 */
    window.UEDITOR_Admin_URL = "/public/plugins/Ueditor/";
    var URL_upload = "/index.php/admin/Ueditor/imageUp/savepath/goods.html";
    var URL_fileUp = "/index.php/admin/Ueditor/fileUp/savepath/article.html";
    var URL_scrawlUp = "/index.php/admin/Ueditor/scrawlUp/savepath/article.html";
    var URL_getRemoteImage = "/index.php/admin/Ueditor/getRemoteImage/savepath/article.html";
    var URL_imageManager = "/index.php/admin/Ueditor/imageManager/savepath/article.html";
    var URL_imageUp = "/index.php/admin/Ueditor/imageUp/savepath/article.html";
    var URL_getMovie = "/index.php/admin/Ueditor/getMovie/savepath/article.html";
    var URL_home = "";
</script>
<script type="text/javascript" charset="utf-8" src="/public/plugins/Ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/public/plugins/Ueditor/ueditor.all.min.js"> </script>
 <script type="text/javascript" charset="utf-8" src="/public/plugins/Ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">  
  
    var editor;
    $(function () {
        //具体参数配置在  editor_config.js  中
        var options = {
            zIndex: 999,
            initialFrameWidth: "95%", //初化宽度
            initialFrameHeight: 400, //初化高度
            focus: false, //初始化时，是否让编辑器获得焦点true或false
            maximumWords: 99999, removeFormatAttributes: 'class,style,lang,width,height,align,hspace,valign'
            , //允许的最大字符数 'fullscreen',
            pasteplain:false, //是否默认为纯文本粘贴。false为不使用纯文本粘贴，true为使用纯文本粘贴
            autoHeightEnabled: true
         /*   autotypeset: {
                mergeEmptyline: true,        //合并空行
                removeClass: true,           //去掉冗余的class
                removeEmptyline: false,      //去掉空行
                textAlign: "left",           //段落的排版方式，可以是 left,right,center,justify 去掉这个属性表示不执行排版
                imageBlockLine: 'center',    //图片的浮动方式，独占一行剧中,左右浮动，默认: center,left,right,none 去掉这个属性表示不执行排版
                pasteFilter: false,          //根据规则过滤没事粘贴进来的内容
                clearFontSize: false,        //去掉所有的内嵌字号，使用编辑器默认的字号
                clearFontFamily: false,      //去掉所有的内嵌字体，使用编辑器默认的字体
                removeEmptyNode: false,      //去掉空节点
                                             //可以去掉的标签
                removeTagNames: {"font": 1},
                indent: false,               // 行首缩进
                indentValue: '0em'           //行首缩进的大小
            }*/,
        	toolbars: [
                   ['fullscreen', 'source', '|', 'undo', 'redo',
                       '|', 'bold', 'italic', 'underline', 'fontborder',
                       'strikethrough', 'superscript', 'subscript',
                       'removeformat', 'formatmatch', 'autotypeset',
                       'blockquote', 'pasteplain', '|', 'forecolor',
                       'backcolor', 'insertorderedlist',
                       'insertunorderedlist', 'selectall', 'cleardoc', '|',
                       'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
                       'customstyle', 'paragraph', 'fontfamily', 'fontsize',
                       '|', 'directionalityltr', 'directionalityrtl',
                       'indent', '|', 'justifyleft', 'justifycenter',
                       'justifyright', 'justifyjustify', '|', 'touppercase',
                       'tolowercase', '|', 'link', 'unlink', 'anchor', '|',
                       'imagenone', 'imageleft', 'imageright', 'imagecenter',
                       '|', 'insertimage', 'emotion', 'insertvideo',
                       'attachment', 'map', 'gmap', 'insertframe',
                       'insertcode', 'webapp', 'pagebreak', 'template',
                       'background', '|', 'horizontal', 'date', 'time',
                       'spechars', 'wordimage', '|',
                       'inserttable', 'deletetable',
                       'insertparagraphbeforetable', 'insertrow', 'deleterow',
                       'insertcol', 'deletecol', 'mergecells', 'mergeright',
                       'mergedown', 'splittocells', 'splittorows',
                       'splittocols', '|', 'print', 'preview', 'searchreplace']
               ]
        };
        editor = new UE.ui.Editor(options);
        editor.render("goods_content");  //  指定 textarea 的  id 为 goods_content

    }); 
</script>
<!--以上是在线编辑器 代码  end-->
<body style="background-color: #FFF; overflow: auto;">
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div class="page">
    <div class="fixed-bar">
        <div class="item-title">
            <div class="subject">
                <h3>品酒站管理</h3>
                <h5>品酒站管理-添加更新品酒站</h5>
            </div>
            <ul class="tab-base nc-row">
                <li><a href="javascript:void(0);" data-index='1' class="tab current"><span>通用信息</span></a></li>                
            </ul>
        </div>
    </div>
    <!-- 操作说明 -->
    <div class="explanation" id="explanation">
        <div class="title" id="checkZoom"><i class="fa fa-lightbulb-o"></i>
            <h4 title="提示相关设置操作时应注意的要点">操作提示</h4>
            <span id="explanationZoom" title="收起提示"></span> </div>
        <ul>
            <li>品酒站名和站长不可修改</li>
        </ul>
    </div>
    <!--表单数据-->
    <form method="post" id="addEditStationForm">

<!--通用信息-->
        <div class="ncap-form-default tab_div_1">
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">品酒站名称</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$stationInfo.name}" name="name" class="input-txt"/>
                    <span class="err" id="err_name" style="color:#F00; display:none;"></span>
                    <p class="notic">品酒站名命名规范：地区+创建者ID</p>
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">创建者姓名</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$stationInfo.user_name}" name="user_name" class="input-txt"/>
                    <span class="err" id="err_user_name" style="color:#F00; display:none;"></span>
                    <p class="notic">创建者真实姓名</p>
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">创建者ID</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$stationInfo.user_id}" name="user_id" class="input-txt"/>
                    <span class="err" id="err_user_id" style="color:#F00; display:none;"></span>
                    <p class="notic">创建者推广ID号</p>
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">创建者手机号</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$stationInfo.user_mobile}" name="user_mobile" class="input-txt"/>
                    <span class="err" id="err_user_mobile" style="color:#F00; display:none;"></span>
                    <p class="notic">创建者手机号码</p>
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">创建者微信号</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$stationInfo.user_weixin}" name="user_weixin" class="input-txt"/>
                    <span class="err" id="err_user_weixin" style="color:#F00; display:none;"></span>
                    <p class="notic">创建者微信号</p>
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">创建者邮箱</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$stationInfo.user_email}" name="user_email" class="input-txt"/>
                    <span class="err" id="err_user_email" style="color:#F00; display:none;"></span>
                    <p class="notic">创建者邮箱</p>
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">俱乐部经费</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="<if $stationInfo.station_money>{$stationInfo.station_money}<else>0</if>" name="station_money" readonly="readonly" class="input-txt"/>
                    <span class="err" id="err_station_money" style="color:#F00; display:none;"></span>
                    <p class="notic">该俱乐部目前拥有的经费</p>
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
                    <label for="address">所在区域</label>
                </dt>
                <dd class="opt">
                    <select onchange="get_city(this)" id="province" name="province">
                        <option  value="0">选择省份</option>
                        <volist name="province" id="vo">
                            <option value="{$vo.id}" <if condition="$stationInfo['province'] eq $vo[id]">selected</if>>{$vo.name}</option>
                        </volist>
                    </select>
                    <select onchange="get_area(this)" id="city" name="city">
                        <option value="0">选择城市</option>
                        <volist name="city" id="vo">
                            <option value="{$vo.id}" <if condition="$stationInfo['city'] eq $vo[id]">selected</if>>{$vo.name}</option>
                        </volist>
                    </select>
                    <select id="district" name="district">
                        <option value="0">选择区域</option>
                        <volist name="area" id="vo">
                            <option value="{$vo.id}" <if condition="$stationInfo['district'] eq $vo[id]">selected</if>>{$vo.name}</option>
                        </volist>
                    </select>
                    <p class="notic">品酒站所属具体地址</p>
                </dd>
            </dl>
            
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">审核状态</label>
                </dt>
                <dd class="opt">
                    <select name="status" class="small form-control">
                        <option value="0" <if condition="$stationInfo['status'] eq 0">selected="selected"</if>>审核中</option>           
                        <option value="1" <if condition="$stationInfo['status'] eq 1">selected="selected"</if>>通过</option>           
                        <option value="2" <if condition="$stationInfo['status'] eq 2">selected="selected"</if>>拒绝</option>           
                    </select>            
                    <span class="err" id="err_cat_id" style="color:#F00; display:none;"></span>
                    <p class="notic">品酒站审核状态</p>
                </dd>
            </dl>  
            
            <dl class="row">
                <dt class="tit">
                    <label for="record_no">拒绝理由</label>
                </dt>
                <dd class="opt">
                    <input type="text" value="{$stationInfo.refusal}" name="refusal" class="input-txt"/>
                    <span class="err" id="err_refusal" style="color:#F00; display:none;"></span>
                    <p class="notic">若决绝该申请，请填写拒绝理由！</p>
                </dd>
            </dl>
            
		<dl class="row">
        <dt class="tit">品酒站缩略图片上传</dt>
        <dd class="opt">
          <div class="input-file-show" id="divComUploadContainer">
            <span class="show">
                <a class="nyroModal" rel="gal" href="{$stationInfo.original_img}">
                    <i class="fa fa-picture-o" onMouseOver="layer.tips('<img src={$stationInfo.original_img}>',this ,{tips: [1, '#fff']});" onMouseOut="layer.closeAll();"></i>
                </a>
            </span>             
            <span class="type-file-box">            
            <input type="text" id="imagetext" name="original_img" value="{$stationInfo.original_img}" class="type-file-text">            
            <input type="button" class="type-file-button" onClick="GetUploadify(1,'imagetext','station','')" value="上传图片"  hidefocus="true" nc_type="change_site_logo" title="点击前方预览图可查看大图，点击按钮选择文件并提交表单后上传生效"/>
            </span>
          </div>
          <div id="thumbnails" class="ncap-thumb-list">
            <h5><i class="fa fa-exclamation-circle"></i> 请上传图片格式文件。</h5>
            <ul>
            </ul>
          </div>
        </dd>
        </dl>            

        <dl class="row">
            <dt class="tit">
                <label for="record_no">品酒站介绍</label>
            </dt>
            <dd class="opt">                    
                <textarea class="span12 ckeditor" id="goods_content" name="des" title="">{$stationInfo.des}</textarea>
                <span class="err" id="err_des" style="color:#F00; display:none;"></span>                    
            </dd>
        </dl>                                                                                                                                           
        </div>
<!--通用信息-->

		<div class="ncap-form-default">        
            <div class="bot">            
                <input type="hidden" name="id" value="{$stationInfo.id}">
                <input type="hidden" name="__token__" value="{$Request.token}" />
                <a href="JavaScript:void(0);" class="ncap-btn-big ncap-btn-green" onClick="ajax_submit_form('addEditStationForm','{:U('Station/addeditStation?is_ajax=1')}');">确认提交</a>
            </div>
        </div> 
     </form>
    <!--表单数据-->
</div>
<div id="goTop"> <a href="JavaScript:void(0);" id="btntop"><i class="fa fa-angle-up"></i></a><a href="JavaScript:void(0);" id="btnbottom"><i class="fa fa-angle-down"></i></a></div>		
</body>
</html>